﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EShop.Core.Model.System;

namespace EShop.Services.System
{
    public interface IManageConfig
    {
        /// <summary>
        /// 基本配置信息添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool AddConfig(Config model);
        /// <summary>
        /// 基本配置信息修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool UpdateConfig(Config model);
        /// <summary>
        /// 基本配置信息删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelConfig(string id);
        /// <summary>
        /// 基本分类信息分页列表
        /// </summary>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <param name="fiter"></param>
        /// <returns></returns>
        string AllConfig(string start, string limit, string fiter);
        /// <summary>
        /// 获得一条基本分类信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        string GetConfigById(string id);
    }
}
